{extend name="common/layout" /}


{block name="style"}{/block}

{block name="content"}

<link href="__CMS_PATH__/css/layout.css" rel="stylesheet" type="text/css"/>

<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/font-family.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/layui.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/iconfont.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/info.css">
    <style>
	.info-list-left{
		width: 1200px;
	}

</style>
<script type="text/javascript" src="__CMS_PATH__/js/waypoints.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
	//侧边滚动上传图片列表
	 $('#articleTool-holder').waypoint(function(event, direction) {
        $(this).parent().parent().toggleClass('sticky', direction === "down");
        event.stopPropagation();
    }); 
});

//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('text').style.fontSize=(--curfontsize)+'pt';
 document.getElementById('text').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('text').style.fontSize=(++curfontsize)+'pt';
 document.getElementById('text').style.lineHeight=(++curlineheight)+'pt';
  }
}
</script>
<div class="container">
	<div class="sitenav-bar" style="line-height: 40px;margin-top: 10px;">
		<div class="sitenav">
        	当前位置：
        	<a href="{:url('cms/Cmsarticle/index')}">茶生活</a>
        	{if !empty($article_detail)}
        		 > <a href="{:url('cms/Cmsarticle/article_list',array('class_id'=>$article_detail['article_class_id_sub']['class_id']))}">{$article_detail['article_class_id_sub']['class_name']}</a>
        		 > {$article_detail['article_title']}
        	{/if}
        </div>
    </div>
	<div class="info-list-left">
		
		<div class="text-content">
            <div class="text-title">
                <h2><?php echo $article_detail['article_title'];?></h2>
                <div class="media-details">
                	<span>
                		作者：<?php echo empty($article_detail['article_author'])?'匿名':$article_detail['article_author'];?>
                		
                	</span> 
                	<span>
                		出处：
                		<?php echo empty($article_detail['article_origin'])?sysconf('site_name'):$article_detail['article_origin'];?>
                	</span>
                	<span class="date"><?php echo date('Y-m-d',$article_detail['article_publish_time']);?></span> 
                	<span class="PV" title="浏览数">
                		<i></i>浏览
                		<em>(<b><?php echo $article_detail['article_click'];?></b>)</em>
                	</span>
					<!--<span style="cursor: pointer;" id="btn_sns_share" data-title="<?php echo $article_detail['article_title'];?>" data-image="<?php echo getCMSArticleImageUrl($article_detail['article_attachment_path'], $article_detail['article_image'], 'list');?>" data-publisher="<?php echo empty($article_detail['article_author'])?'匿名':$article_detail['article_author'];?>" data-origin="<?php echo empty($article_detail['article_origin'])?sysconf('site_name'):$article_detail['article_origin'];?>" data-publish_time="<?php echo date('Y-m-d',$article_detail['article_publish_time']);?>" data-abstract="<?php echo $article_detail['article_abstract'];?>" class="cms-share" title="分享"><i></i><font>分享</font><em>(<b><?php echo $article_detail['article_share_count'];?></b>)</em>
                		
                	</span>-->
				</div>
            </div>
            
            <!--简介-->
            <div class="article-detail-content">
            	<p class="article-preface"><?php echo $article_detail['article_abstract'];?></p>
            </div>
            
            <!-- 正文 -->
            <div class="text-text">
                <?php echo html_entity_decode($article_detail['article_content']);?>
            </div>
            
            <div class="text-label">
                <p class="left">标签：
	                <?php if(!empty($article_detail['article_keyword'])) { ?>
		          	<?php $article_keyword_array = explode(',', $article_detail['article_keyword']);?>
		          	<?php foreach ($article_keyword_array as $value) {?>
		          		<a href="{:url('article_search',array('keyword'=>$value))}" target="_blank"><?php echo $value;?></a>
		          	<?php } ?>
		          	<?php } ?>
               	</p>
            </div>
            <div class="clearfix"></div>
            <!-- 相关文章 -->
            <div class="text-referral">
		        <?php if(!empty($article_link_list)) { $i = 0;?>
			        <h2>相关推荐</h2>
			        <div class="text-referral-left">
				        <ul>
				          	<?php foreach($article_link_list as $value) { $i++;?>
				          		<?php if($i >6){break;}?>
				          		<li>
				          			<a target="_blank" href="{:url('cms/Cmsarticle/article_detail',array('article_id'=>$value['article_id']))}">
				          				<i class="icon kangle-icon">&#xe63f;</i> <?php echo $value['article_title'];?> 
				          			</a> 
				          		</li>
				          	<?php } ?>
				        </ul>
			        </div>
	          	<?php } ?>
	          	
	          	<?php if(!empty($article_link_list)) { $i = 0; ?>
			        <div class="text-referral-left right">
				        <ul>
				          	<?php foreach($article_link_list as $value) { $i++;?>
				          		<?php if($i < 7){continue;}?>
				          		<?php if($i > 12){break;}?>
				          		<li>
				          			<a target="_blank" href="{:url('cms/Cmsarticle/article_detail',array('article_id'=>$value['article_id']))}">
				          				<i class="icon kangle-icon">&#xe63f;</i> <?php echo $value['article_title'];?> 
				          			</a> 
				          		</li>
				          	<?php } ?>
				        </ul>
			        </div>
	          	<?php } ?>
            	
            </div>
            <div class="clearfix"></div>
        </div>
        
        <!-- 心情评论 -->
  		<div class="mainbox">
		    <article class="article-detail-content">
		      <?php if(intval(sysconf('cms_attitude_flag')) === 1 && intval($article_detail['article_attitude_flag']) === 1) { ?>
		      <section  class="article-attitude"> 
		        <!-- 心情 -->
		        {include file="cms/cmsarticle/article_attitude" /}
		      </section>
		      <?php } ?>
		      <?php if(intval(sysconf('cms_comment_flag')) === 1 && intval($article_detail['article_comment_flag']) === 1) { ?>
		      <section class="article-comment"> 
		        <!-- 评论 -->
		        {include file="cms/cmsarticle/comment" /}
		      </section>
		      <?php } ?>
	    	</article>
  		</div>
  		
	</div>
	
</div>
{include file="cms/cmsarticle/widget_sns_share" /}
	
{/block}
